

<div id="coupons">
	<div class="dashboard" id="dashboard">

	</div>
    <div id="content" class="coupons-box clear">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
                    <h2>我的优惠券</h2>

				</div>
                <div class="sect">

					<!--{/if}-->
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
						<tr><th width="240">项目名称</th><th width="100" nowrap>编号</th><th width="60" nowrap>密码</th><th width="100" nowrap>有效日期</th><th width="100" nowrap>消费情况</th></tr>
					<!--{loop $coupons $index $one}-->
						<?php $this->widget('zii.widgets.CListView', array(
							'dataProvider'=>$dataProvider,
							'itemView'=>'coupon_view',
							'pager'=>array('prevPageLabel'=>'上一页','nextPageLabel'=>'下一页','header'=>' ',),
							'summaryText'=>''
						)); ?>
					<!--{/loop}-->

                    </table>
				</div>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
	<div id="sidebar">
		<div class="sbox">
			<div class="sbox-top"></div>
			<div class="sbox-content">
				<div class="side-tip">
					<h2>菜单</h2>
					<p><a href="<?php echo $this->createUrl('user/couponview'); ?>">我的优惠券</a></p>
					<p><a href="<?php echo $this->createUrl('user/expressview'); ?>">我的快递</a></p>
					<p><a href="<?php echo $this->createUrl('user/orderview'); ?>">我的订单</a></p>
					<p><?php echo CHtml::link('更改信息',array('update', 'id'=>Yii::app()->user->id))?></p>
				</div>
			</div>
			<div class="sbox-bottom"></div>
		</div>
	</div>
</div>

